package com.epam.kulibaba.components.compareTable;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

public class CompareTable {

	public static final String COMPARETABLE = ".//div[@id = 'page-content-wrap']//tbody";

	@FindBy(xpath = CompareTable.COMPARETABLE)
	WebElement compareTable;

	public WebElement getCompareTable() {
		return compareTable;
	}
	
	public static CompareTable getProductsCatalog(WebDriver driver) {
		CompareTable compareTable = PageFactory.initElements(driver,
				CompareTable.class);
		return compareTable;
	}

}
